package com.it.security.service.impl;

import com.it.security.dao.UserRoleDao;
import com.it.security.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    UserRoleDao userRoleDao;
    @Override
    public List<Integer> getRoleByUserId(Integer id) {
        return userRoleDao.getRoleByUserId(id);
    }
}
